package com.aibank.service;

import com.aibank.entity.Recharge;
import com.aibank.entity.User;
import com.aibank.repository.RechargeRepository;
import com.aibank.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserRepository userRepository;

    @Autowired
    private RechargeRepository rechargeRepository;

    public void personRegister(User user) {
        userRepository.save(user);
    }

    public void Recharge(Recharge recharge) {
        rechargeRepository.save(recharge);
    }
}
